import App from './App'
const callphone = (p) => {
	uni.makePhoneCall({
		phoneNumber: p.toString()
	}).catch((e) => {
		// console.log(e)  //用catch(e)来捕获错误{makePhoneCall:fail cancel}
	})
}
const daohang = (val)=>{
	let text = "https://www.google.com.tw/maps/place/"+val
	location.href = text;
}
// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
import uView from "uview-ui";
Vue.use(uView);
const httpRequest = require("@/common/httpRequest.js")
Vue.prototype.http=httpRequest
Vue.prototype.imgUrlUser="https://taiwanyh.hujiaa.com"
// Vue.prototype.imgUrlUser="https://useradmin.opos.tw"
Vue.prototype.callphone = callphone
Vue.prototype.daohang = daohang
Vue.config.productionTip = false

App.mpType = 'app'
const app = new Vue({
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif